package com.crop.back.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * author Luge
 * description: $
 * param: $
 * return: $
 * date: $ $
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class ProcessingBatchDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分页参数")
    private Integer page = 1;

    @ApiModelProperty("单页大小")
    private Integer pageSize = 5;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("加工方ID")
    private Long processorId;

    @ApiModelProperty("加工方名称")
    private String processorName;

    @ApiModelProperty("批次号")
    private String batchNo;

    @ApiModelProperty("产品ID")
    private Long productId;

    @ApiModelProperty("产品名称")
    private String productName;

    @ApiModelProperty("加工日期")
    private LocalDate processingDate;

    @ApiModelProperty("状态：0-进行中 1-已完成")
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer deleted;
}

